package com.example.data0306.news;

import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.data0306.Adapter.YundingAdapter;
import com.example.data0306.R;
import com.example.data0306.base.BaseFragment;
import com.example.data0306.bean.YundingBean;

public class YundingFragment extends BaseFragment {
    private RecyclerView nRecyclerView;
    private YundingAdapter nAdapter;

    @Override
    protected int rootLayout() {
        return R.layout.fragment_yunding_01;
    }

    @Override
    protected int contentView() {
        return 0;
    }

    @Override
    protected void initView(View rootView) {
        nRecyclerView = rootView.findViewById(R.id.rv_yunding_list);
    }

    @Override
    protected void initData() {
        nAdapter = new YundingAdapter();
        nAdapter.addData(new YundingBean("【天神裁决天使】4裁决4天神2宗师",R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.pic_mine,"虎牙|king亚索"));
        nAdapter.addData(new YundingBean("【重装拉夫】4重装3龙魂3战神",R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.pic_mine,"斗鱼|梨落秋溪"));
        nAdapter.addData(new YundingBean("【天神裁决天使】4裁决4天神2宗师",R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.pic_mine,"虎牙|king亚索"));
        nAdapter.addData(new YundingBean("【天神裁决天使】4裁决4天神2宗师",R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.pic_mine,"虎牙|king亚索"));
        nAdapter.addData(new YundingBean("【天神裁决天使】4裁决4天神2宗师",R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.pic_mine,"虎牙|king亚索"));
        nAdapter.addData(new YundingBean("【天神裁决天使】4裁决4天神2宗师",R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.pic_mine,"虎牙|king亚索"));
        nAdapter.addData(new YundingBean("【天神裁决天使】4裁决4天神2宗师",R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head,R.drawable.icon_head
                ,R.drawable.icon_head,R.drawable.pic_mine,"虎牙|king亚索"));

    }

    @Override
    protected void bindData() {
        super.bindData();
        nRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        nRecyclerView.setAdapter(nAdapter);
    }

    @Override
    protected void bindEvent() {

    }
}

//public class YundingFragment {
//}
